﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Snowdreamist.Prism.Region
{
	/// <summary>
	/// 声明视图，为这个视图类型声明一个名字
	/// </summary>
	[AttributeUsage(AttributeTargets.Class)]
	public class ViewDeclareAttribute : Attribute
	{
		/// <summary>
		/// 视图名称
		/// </summary>
		public string ViewName { get; private set; }
		/// <summary>
		/// 创建一个视图声明
		/// </summary>
		/// <param name="viewName">视图名字</param>
		public ViewDeclareAttribute(string viewName)
		{
			ViewName = viewName;
		}
	}
}
